<?php if($status == 'set'): ?>
<input class="change-premission" type="checkbox" checked="checked" value="<?php print $permission_id; ?>" role="<?php print $role_id; ?>" rel="<?php print site_url('roles/setPermission/'.$role_id.'/'.$permission_id.'/unset'); ?>">
<?php else: ?>
<input class="change-premission" type="checkbox" value="<?php print $permission_id; ?>" role="<?php print $role_id; ?>" rel="<?php print site_url('roles/setPermission/'.$role_id.'/'.$permission_id.'/set'); ?>">
<?php endif; ?>